package com.hcandtx.Bms.bean;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class User {
	private int  id;
	private String userName;
	private String  loginName;
	private String  loginPswd;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date registrationDate;
	private boolean vip;
	private double balance;
	
	public User() {
		this.registrationDate=new Date();
		this.vip=false;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getLoginPswd() {
		return loginPswd;
	}

	public void setLoginPswd(String loginPswd) {
		this.loginPswd = loginPswd;
	}

	

	public Date getRegistrationDate() {
		return registrationDate;
	}

	public void setRegistrationDate(Date registrationDate) {
		this.registrationDate = registrationDate;
	}

	public boolean isVip() {
		return vip;
	}

	public void setVip(boolean vip) {
		this.vip = vip;
	}

	public double getBalance() {
		return balance;
	}

	public void setBalance(double balance) {
		this.balance = balance;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", userName=" + userName + ", loginName=" + loginName + ", loginPswd=" + loginPswd
				+ ", registrationDate=" + registrationDate + ", vip=" + vip + ", balance=" + balance + "]";
	}

	
	
	

}
